package com.tz.crm.entity.dto;

import com.tz.crm.entity.enumeration.Level;
import com.tz.crm.entity.enumeration.Source;
import com.tz.crm.entity.enumeration.Status;
import com.tz.crm.entity.enumeration.Type;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by wangchunyang on 2017/3/7.
 * 客户信息封装
 *
 */
public class Customer {

    @NotBlank(message = "{customer.name.invalid}")
    String name;//客户名
    @NotBlank(message = "{customer.address.invalid}")
    String address; //地址
    String address2; //其他地址
    Level level; //客户成熟度
    @NotNull(message = "{customer.source.invalid}")
    Source source;//客户来源
    String fax;//传真号
    String webSite;//网站
    String business;//客户行业
    String remark;//客户描述
    @NotBlank(message = "{customer.provinceId.invalid}")
    String provinceId;
    String provinceName;//省份名
    @NotBlank(message = "{customer.cityId.invalid}")
    String cityId;
    String cityName;//城市名
    Type type;//客户类型
    Status status;//签约与否

    public Customer() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress2() {
        return address2;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }

    public Level getLevel() {
        return level;
    }

    public void setLevel(Level level) {
        this.level = level;
    }

    public Source getSource() {
        return source;
    }

    public void setSource(Source source) {
        this.source = source;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getWebSite() {
        return webSite;
    }

    public void setWebSite(String webSite) {
        this.webSite = webSite;
    }

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", address2='" + address2 + '\'' +
                ", level=" + level +
                ", source=" + source +
                ", fax='" + fax + '\'' +
                ", webSite='" + webSite + '\'' +
                ", business='" + business + '\'' +
                ", remark='" + remark + '\'' +
                ", provinceId='" + provinceId + '\'' +
                ", provinceName='" + provinceName + '\'' +
                ", cityId='" + cityId + '\'' +
                ", cityName='" + cityName + '\'' +
                ", type=" + type +
                ", status=" + status +
                '}';
    }
}
